@import '~iview/src/styles/index.less';
@import './variable.less';

@menu-dark-title        : #001529;
@menu-dark-active-bg    : #000c17;
@layout-sider-background: #001529;

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active,
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active:hover{
    border-right: none;
    color: @mainColor;
    background: #2a323f!important;
}
.ivu-select-item-selected, .ivu-select-item-selected:hover,
a:hover ,.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item:hover,
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover,
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover,
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-child-item-active>.ivu-menu-submenu-title,
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu),
.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title-active:not(.ivu-menu-submenu),
.ivu-breadcrumb a:hover
 {
    color: @mainColor;
}
.ivu-select-selection:hover, .ivu-select-selection-focused {
    border-color: @mainColor;
}
.ivu-tag-primary, .ivu-tag-primary.ivu-tag-dot .ivu-tag-dot-inner {
    background: @mainColor;
}
.ivu-card:hover{
    box-shadow: none;
    border-color: none;
}
.ivu-card-bordered{
    border: none;
}
.main .content-wrapper{

}
.side-menu-wrapper a.drop-menu-a{
    padding: 10px 15px;
}
.ivu-input:focus,.ivu-select-visible .ivu-select-selection {
    border-color: @mainColor;
    outline: 0;
    -webkit-box-shadow: 0 0 0 2px rgba(43, 214, 189, 0.2);
    box-shadow: 0 0 0 2px rgba(43, 214, 189, 0.2);
}
.ivu-input:hover {
    border-color: @mainColor;
}
.ivu-form-item-required .ivu-form-item-label:before{
    display: none;
}
.ivu-form-item-required .ivu-form-item-label:after {
    content: '*';
    display: inline-block;
    margin-left: 4px;
    line-height: 1;
    font-family: SimSun;
    font-size: 12px;
    color: #ed4014;
}
.ivu-btn-primary {
    color: #fff;
    background-color: @mainColor;
    border-color: @mainColor;
    &.ivu-btn-primary{
        color: @mainColor;
        background-color: white;
    }
}
.ivu-btn:hover {
    color: @hoverColor;
    background-color: white;
    border-color: @hoverColor;
}
.ivu-btn-primary:hover {
    color: #ffffff;
    background-color: @hoverColor;
    border-color: @hoverColor;
}

.ivu-drawer-content{
    .ivu-drawer-header{
        font-size: 16px;
    }
}
.ivu-table-large td,.ivu-table-large th {
  height: 45px;
}
.ivu-btn-error:hover {
  color: #ffffff !important;
  background-color: #f16643 !important;
  border-color: #f16643 !important;
}
.ivu-checkbox-indeterminate .ivu-checkbox-inner,
.ivu-checkbox-checked .ivu-checkbox-inner{
    background-color: @mainColor;
    border-color: @mainColor;   
}
.ivu-tabs-nav .ivu-tabs-tab:hover ,
.ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active,
.ivu-tabs-nav .ivu-tabs-tab-active
{
    color: @mainColor;
}
.ivu-tabs-nav-container:focus .ivu-tabs-tab-focused,
.ivu-checkbox-checked:hover .ivu-checkbox-inner
{
    border-color: @mainColor !important;
}
.drag-drawer-body-wrapper{
    padding: 0 !important;
}

.mt{
    margin-top: 15px;
}

.ivu-card-body{
    // padding-top: 5px!important;
    .search-con{
        display: flex;
        flex-wrap: wrap;
        .mt{
            margin-right: 15px;
            width: 200px;
            &.addBtn{
                width: auto!important;
                .ivu-btn{
                    padding: 5px 10px;
                    .ivu-icon-md-add{
                        font-weight: bold;
                    }
                }

            }
            .ivu-btn{
                height: 32px;
                font-size: 14px;
                &>span{
                    vertical-align: baseline !important;
                }
                &>.ivu-icon {
                    line-height: 1;
                    padding-bottom: 2px;
                    font-size: 18px;
                }
            }
            .search-btn{
                font-size: 14px;
                padding: 5px 10px;
                height: 32px;
                .icon-sousuo{
                    padding-right: 5px;
                }
            }
            .ivu-date-picker{
                width: 100%;
            }
            &:last-child{
                flex: 1;
            }
        }
    }
    .tableMargin{
        margin: 20px 0;
        th,tr{
            font-size: 14px;
        }
        .ivu-btn{
            &:hover{
                background: none;
                color: #ed4014 !important;
                text-decoration: underline;
                border-color:transparent;
            }
        }
    }
}
.ivu-page{
    text-align: center;
}
.ivu-page-item-active {
    border-color: @mainColor;
    a{
        color: @mainColor;
    }
}

.drag-drawer-wrapper .drag-drawer-body-wrapper .container{
    padding: 16px 65px 16px 16px;
    .ivu-form-item-label {
        font-size: 14px;
    }
}
.assginPermission{
    .ivu-tabs-nav-scroll{
        padding-left: 30px;
    }
    .ivu-tabs-tabpane{
        padding-left: 30px;
    }
}
.m-title{
    padding: 0 30px;
    height: 40px;
    line-height: 40px;
    background: inherit;
    background-color: #e4e4e4;
    font-size: 14px;
}
.drag-drawer-footer{
    .confirm {
        margin-left: 15px;
    }
}
.wrapper-card{
    height: 100%;
    background-color: #fff;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
}
.drawer-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  border-top: 1px solid #e8e8e8;
  padding: 15px 20px;
  text-align: right;
  background: #fff;
  .total{
    font-size: 16px;
    span{
      color: #f90000;
      font-weight: bold;
    }
  }
}
.serviceList-wrap{
  li{
    display: flex;
    font-size: 16px;
    border-bottom:1px solid #f5f5f5;
    padding: 8px 0;
    cursor: pointer;
    &.active{
      color: @mainColor;
    }
    &>div{
      flex: 1;
      // text-align: center;
      // &.projectName{
      //   text-align: left;
      // }
      &.selected{
        flex: 0 0 50px;
      }
    }
  }
}

.tableBtn{
  color: @mainColor;
  font-size: 16px;
}

.mg{
  margin: 15px;
}
.ivu-checkbox-checked .ivu-checkbox-inner {
    background-color: @mainColor;
    border-color: @mainColor;
}
.drawer-mask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(55, 55, 55, 0.6);
  height: 100%;
  z-index: 1000;

}
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}

.limitLine {
  display: -webkit-box;
  text-overflow:ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.ivu-drawer-header {
    border: none !important;
    padding: 30px!important;
    font-weight: bold;
    font-size: @font-size-large;
    .title {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
}
 
// 抽屉样式
.ivu-drawer-body {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: calc(100% - 78px) !important;
  
    .split {
      background-color: #f2f3f4;
      width: 100%;
      line-height: 40px;
      height: 40px;
      position: relative;
      margin: 24px 0;
      padding-left: 16px;
  
      &:first-child {
        margin-top: 0;
      }
  
      &::after {
        content: '';
        position: absolute;
        right: -30px;
        top: 0;
        width: 30px;
        height: 40px;
        background-color: #f2f3f4;
      }
    }
  
    .body {
      flex: 1;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-content: flex-start;
      padding: 0 30px;
      overflow-y: auto;
    }
  
    .drawer-footer {
      width: 100%;
      margin-top: 20px;
      margin-bottom: 30px;
      background: #fff;
      display: flex;
      justify-content: flex-end;
      padding: 0 30px;
      align-items: center;
  
      .spacing {
        flex: 1;
      }
    }
}    